package com.example.user.newsongpaly;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;


public class FragmentSingerMessage extends Fragment {

    final static String TAG = "FragmentSingerMessage";
    @BindView(R.id.songName)
    TextView songName;
    @BindView(R.id.singName)
    TextView singName;
    Unbinder unbinder;

    public FragmentSingerMessage() {
        // Required empty public constructor
    }


    public static FragmentSingerMessage newInstance() {
        FragmentSingerMessage fragment = new FragmentSingerMessage();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_fragment_singer_message, container, false);
        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        songName.setText(ListContentlist.getlistContentlist().getContentlistBean().getSongname());
        singName.setText(ListContentlist.getlistContentlist().getContentlistBean().getSingername());
    }

    @Override
    public void onDetach() {
        super.onDetach();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
